﻿//----------------------------------------------------------------
// Desc: 
// Edit: ShowLong, http://blog.csdn.net/showlong
//
// Date Created: 2010-06-11
//
// Update Date : 
//
// Copyright (c) Fuel4D (http://www.fuel4d.com), All rights reserved.
//
//----------------------------------------------------------------
#pragma once


FINLINE void* FMemcpy(void* dst, const void* src, size_t count)
{
    if (dst == src)
        return dst;
    if (dst && src && count)
        return memcpy(dst, src, count);
    return 0;
}

FINLINE void* FMemzero(void* dst, size_t count)
{
    if (dst && count)
        return memset(dst, 0, count);
    return 0;
}

FINLINE int FMemcmp(const void* left, const void* right, size_t count)
{
    if (left && right && count)
        return memcmp(left, right, count);
    return 0;
}

FINLINE bool FDelFileW(const WCHAR* szpath, bool go_recycle)
{
    return FDelDirectoryW(szpath, go_recycle);
}

FINLINE bool FDelFileA(const ACHAR* szpath, bool go_recycle)
{
    return FDelDirectoryA(szpath, go_recycle);
}